﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HKEA.CMS.Core.Models
{
    public class MediaRoomList
    {
        public string From { get; set; }
        public int KeyUID
        {
            get
            {
                if (From == "tbl")
                    return TblKeyUID;
                else
                    return AppKeyUID;
            }
            set { }
        }
        public int AppKeyUID { get; set; }
        public int TblKeyUID { get; set; }
        public string CateGory { get; set; }
        public int CustomerUID { get; set; }
        public string MediaType { get; set; }
        public string FilePath { get; set; }
        public string FileName { get; set; }
        public int IsPublish { get; set; }
        public int IsDeleted { get; set; }

        public string KeyInfo {
            get
            {
                if (From == "tbl")
                    return TblKeyUID+ "_tbl" ;
                else
                    return  AppKeyUID+ "_app";
            }
        }
    }
}
